/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Comun;

import javax.swing.JLabel;

/**
 *
 * @author luisramirezmartinez SAMI 2011
 *
 */
public class LabelObjetivo extends JLabel{

    public LabelObjetivo() {
        super();
        this.setHorizontalAlignment(CENTER);
    }

    @Override
    protected void firePropertyChange(String string, Object o, Object o1) {
        super.firePropertyChange(string, o, o1);
       if(this.getParent()!=null) this.getParent().getParent().repaint();
    }

 
    @Override
    public void setText(String string) {
        super.setText(string);
        firePropertyChange(string, ui, ui);
    }
    
}
